import { getLeftMenu } from "@/router/page";
import router from "./index";
let menu = getLeftMenu()
//动态添加路由
const dynamicAddRouter = ()=>{
    menu.forEach(item => {
        router.addRoute('indexView',item)
    });
    router.addRoute({
        path:'/:pathMatch(.*)*',
      redirect:'/notfound'
    })
}
dynamicAddRouter()